<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 利用对象字面量的形式创建一个名字为可可的狗对象具体如下
        var Dog = {
            name: '可可',
            type: '阿拉斯加犬',
            age: 5,
            color: '棕红色',
            skill: function () {
                console.log('技能是汪汪汪和演电影');
            }
        }
        console.log(Dog.name);
        Dog.skill();


    </script>
</head>

<body>

</body>

</html>